Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add double token support for seata netty communication authentication #6913

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

Muluo-cyan
Copy link

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

Client注册RM与TM的同步请求与异步请求现在支持jwt authentication, 采用双token(accessToken和refreshToken)方案

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

配置raft集群信息,启动seata server的raft集群
下载seata-samples/at-samples,配置对应的raft集群,配置便于测试的token有效时间
启动客户端
验证Client注册RM与TM:查看RM和TM在客户端启动时的注册情况,可以修改seata-samples的代码,添加一个create RM的代码,根据配置的token有效期,在不同时间查看注册RM的鉴权流程。(首次注册使用用户名密码,登录成功获取access token和refresh token,在access token有效期内注册使用access token,access token即将过期或者已经过期时,使用refresh token刷新获取新的access token,refresh token过期后重新登录获取新的access token和refresh token)

Ⅴ. Special notes for reviews

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant